<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>CSS 浮动</title>
	<style>
		.father{
			height: 150px;
			background-color: aquamarine;
			border: 5px solid red;
			overflow: hidden;
		}

		.leftson{
			width: 100px;
			height: 100px;
			background-color: bisque;
			float: left;
		}

		.rightson{
			width: 100px;
			height: 100px;
			background-color: plum;
			float: right;
		}
	</style>
</head>
<body>
	<div class="father">
		<div class="leftson">左浮动</div>
		<div class="rightson">右浮动</div>
	</div>
</body>
</html>